package com.yunhe.service;

import org.apache.ibatis.session.SqlSession;

import com.yun.dao.ShoppimgjiaDao;
import com.yunhe.util.MySession;

public class DeletePingJiaYeWu {
	public void DeleteP(int p){
		SqlSession se = MySession.getSession();
		ShoppimgjiaDao mapper = se.getMapper(ShoppimgjiaDao.class);
		mapper.DeletePingJia(p);
		se.commit();//必须写 否则删除操作无法到数据库
	}
}
